<template>
	<view v-if="url"> 
		<!-- <view>{{pConfig.index_video[0]}}</view> -->
		<video style="width: 750rpx;height: 450rpx;z-index: 2;margin-top: -50rpx;"
		object-fit="fill"
		 id="indexVideo" :src="url" controls autoplay></video>
	</view>
</template>

<script>
	export default {
		props:{
			pConfig:{
				required:true
			}	
		},
		mounted() {
			console.log(this.pConfig);	
			let _this=this
			setTimeout(function(){
				_this.index_video=_this.pConfig['index_video'][0]
				_this.url=_this.domainUrl+"/uploads/"+_this.index_video.url
			},500)
		},
		data(){
			return {
				index_video:null,
				url:null
			}
		}
	}
</script>

<style lang="scss">
	
</style>